package cn.xt.service.orders;

import cn.xt.bean.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author shkstart
 * @date 2018/11/26-9:26
 */
public interface OrdersService {
    //根据结束时间，订单支付状态判断订单状态
    public List<Orders> listOrders(int users_id,int zfzt);

    //根据离开日期和房东id判断房东订单的状态
    public List<Orders> fdListOrders(int fdusers_id);

    //根据离开日期和房东id判断房东订单的状态
    public List<Orders> fdListOrders1(int fdusers_id);

    //删除订单
    public int delOrders(String orders_id);

    //添加订单

    public int addOrders(Orders orders);

    //查詢全部訂單条数
    public int ordersCount(int users_id);

    //查詢未支付訂單条数
    public int ordersWCount(int users_id);

    //查询已完成的订单条数
    public int ordersYCount(int users_id);

    //查询订单信息
    public Orders findOrdersId(long orders_id);


}
